using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ErpManager.WPF.Models
{
    public class OutboundRecord
    {
        [Key]
        public int RecordId { get; set; }

        [Required]
        public int DealerId { get; set; }

        [Required]
        public int ProductId { get; set; }

        [Required]
        public int Quantity { get; set; }

        [Required]
        public DateTime OutboundDate { get; set; }

        public DateTime CreateTime { get; set; }

        [ForeignKey("DealerId")]
        public virtual Dealer? Dealer { get; set; }

        [ForeignKey("ProductId")]
        public virtual Product? Product { get; set; }
    }
}
